public class BuilderPatternDemo {
    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();

        Meal meal = mealBuilder.prepareNonVegMeal();
        meal.showItems();
        System.out.println(meal.getCost());

        Meal meal2 = mealBuilder.prepareVegMeal();
        meal2.showItems();
        System.out.println(meal2.getCost());

    }
}
